/* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is property of Nordic Semiconductor ASA.
 * Terms and conditions of usage are described in detail in NORDIC
 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
 *
 * Licensees are granted free, non-transferable use of the information. NO
 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
 * the file.
 *
 * $LastChangedRevision$
 */ 

/** @file
*/

/** @defgroup hal_io hal_io
 * @{
 * @ingroup hal
 * @brief Macros input/output management
*/

#include "hal_platform.h"

#ifndef HAL_IO_H__
#define HAL_IO_H__

#define SET_NREQ()			(PORTA.OUTSET = _BV(4))
#define CLR_NREQ()			(PORTA.OUTCLR = _BV(4))


/**@brief Macro to set an output.
 *  @details
 *  This macro sets the given output to the given level (1 -> high, 0 -> low).
 *  @param io_name Output to change.
 *  @param io_state Level to set.
*/
//#define HAL_IO_SET_STATE(io_name, io_state)

/**@brief Macro that reads the current state of an input.
 *  @details
 *  This macro reads the current state of a logical input.
 *  @param io_name Input to read.
 *  @return Input state level (1 if high, 0 if low).
*/


#endif //HAL_IO_H__

/** @} */
